using System;
using MirLda.BL.DB.Facades;
using MirLda.BL.Interfaces;
using MirLda.BL.Objects;
using MirLda.BL.Objects.News;
using MirLda.BL.Objects.Users;

namespace MirLda.BL.Implements
{
	/// <summary>
	/// NewsImplementation.
	/// </summary>
	public class NewsImplementation:INewsImpl
	{
		public NewsImplementation()
		{
			
		}

		public NewsItemCollection GetNews(User currentUser, PageListingObj pager)
		{
			Guid userId;
			if( currentUser == null )
				userId = Guid.Empty;
			else
				userId = currentUser.TempUserId;
			return NewsItemFacade.GetNews( userId, pager );
		}
	}
}
